import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/common.less'
import componentPlugin from '@/components/index.js'
// 图片懒加载注册
import defineDirective from '@/directives/index.js'

// 触发mutation函数修改name 验证是否自动同步到本地
// store.commit('user/setName')
// use():vue3挂载方法
createApp(App).use(store).use(router).use(componentPlugin).use(defineDirective).mount('#app')
